<form class="form-horizontal" ng-init="dvm.init()" ng-submit="dvm.ok(dvm.parsable)" novalidate>
  <div class="modal-header">
    <button type="button" class="close" ng-click="dvm.cancel()">&times;</button>
    <h4 class="modal-title">编辑【{{dvm.typeName}}】文本</h4>
  </div>
  <div class="modal-body">
    <div class="form-group">
      <div class="col-sm-12">
        <div class="x-editor">
          <pre id="doc-editor" style="height:500px"></pre>
        </div>
      </div>
    </div>
  </div>
  <div class="modal-footer">
    <button type="button" class="btn btn-success" ng-click="dvm.format()">格式化</button>
    <button type="submit" class="btn btn-primary" ng-disabled="!dvm.parsable">确定</button>
    <button type="button" class="btn btn-default" ng-click="dvm.cancel()">取消</button>
  </div>
</form>
